<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            width: 500px;
            height: 300px;
            /* 边框大小。样式，颜色 */
            border: 1px solid red;
        }

        td {
            border: 1px solid red;
            text-align: center;
        }

        table,
        td {
            /* 合并相邻边框 */
            border-collapse: collapse;
        }
    </style>
</head>

<body>
    <table>
        <td>
            小明
        </td>
        <td>
            男
        </td>
    </table>
</body>

</html>